home *** CD-ROM | disk | FTP | other *** search
- Path: globe.indirect.com!usenet
- From: "Dent McC." <jdmccadd@bslnet.com>
- Newsgroups: comp.lang.c++
- Subject: Newbie ? - How to send output to printer
- Date: 3 Mar 1996 20:40:13 GMT
- Organization: J.D. McCADD
- Message-ID: <4hd03d$b5l@globe.indirect.com>
- NNTP-Posting-Host: prc027.bslnet.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- I'm currently enrolled in a second semester C++ class and am having trouble sending
- the output of my homework assignments to the printer. In the past I was able to
- #include <fstream.h> in the file, and also include the line
-
- ofstream printer("prn")
-
- This enabled me to replace all occurances of 'cout' with 'printer' to redirect output
- to the printer. That was using Turbo C++ (DOS). Now that I've started using C++
- 4.5, i can no longer get any output to the printer. It may have something to do with
- the fact that the Target file is an EasyWin instead of DOS. Any ideas.
-
- Dent
-
-
-